package com.example.demo.feign;

import com.example.common.res.CommonResponse;
import com.example.pojo.Demo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@Component
@FeignClient(name="DING-CSI-GATEWAY",path="out-ding-csi",fallback = DemoFeignClientBack.class)
public interface DemoFeignClient {
    @PostMapping("out/demo")
    CommonResponse<Demo> demo(@RequestBody Demo demo);
}
